this._sessionUpdated();
},
- _updateEventsVisibility: function() {
- let visible = this._eventSource.hasCalendars;
- this._messageList.actor.visible = visible;
- },
-
_getEventSource: function() {
return new Calendar.DBusEventSource();
},
this._messageList.setEventSource(eventSource);
this._eventSource = eventSource;
- this._eventSource.connect('notify::has-calendars', Lang.bind(this, function() {
- this._updateEventsVisibility();
- }));
},
_sessionUpdated: function() {
eventSource = new Calendar.EmptyEventSource();
}
this._setEventSource(eventSource);
- this._updateEventsVisibility();
}
});